﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.ApplicationModel;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236

namespace MultiApp.UserControls
{
    public sealed partial class UnitControl : UserControl
    {
        Windows.ApplicationModel.Resources.ResourceLoader loader = new Windows.ApplicationModel.Resources.ResourceLoader("Strings");
        private object areaunit;
        private object eneunit;
        private object lenunit;
        private object maunit;
        private object spunit;
        private object tempunit;
        private object timeunit;
        private object volunit;
        public UnitControl()
        {
            this.InitializeComponent();
            Calculate.Content = loader.GetString("btnConvert");
            fromText.Text = loader.GetString("lblFrom");
            toText.Text = loader.GetString("lblTo");
            choose.Text = loader.GetString("UnitType");
            choose_Copy.Text = loader.GetString("UnitType");
            Input_amount.Text = loader.GetString("UnitAmount");
            Result.Text = loader.GetString("UnitResult");
            Units();
        }

        public async void Units()
        {
            var lst = new List<string>();
            var cult = System.Globalization.CultureInfo.CurrentUICulture;
            if (cult.Name == "da")
            {
                var txt = await Package.Current.InstalledLocation.GetFileAsync("Data\\UnitDA.txt");
                var unit = await Windows.Storage.FileIO.ReadLinesAsync(txt);

                var area = await Package.Current.InstalledLocation.GetFileAsync("Data\\AreaDA.txt");
                areaunit = await Windows.Storage.FileIO.ReadLinesAsync(area);

                var ene = await Package.Current.InstalledLocation.GetFileAsync("Data\\Energy.txt");
                eneunit = await Windows.Storage.FileIO.ReadLinesAsync(ene);

                var len = await Package.Current.InstalledLocation.GetFileAsync("Data\\LengthDA.txt");
                lenunit = await Windows.Storage.FileIO.ReadLinesAsync(len);

                var ma = await Package.Current.InstalledLocation.GetFileAsync("Data\\MassDA.txt");
                maunit = await Windows.Storage.FileIO.ReadLinesAsync(ma);

                var sp = await Package.Current.InstalledLocation.GetFileAsync("Data\\SpeedDA.txt");
                spunit = await Windows.Storage.FileIO.ReadLinesAsync(sp);

                var temp = await Package.Current.InstalledLocation.GetFileAsync("Data\\Temp.txt");
                tempunit = await Windows.Storage.FileIO.ReadLinesAsync(temp);

                var time = await Package.Current.InstalledLocation.GetFileAsync("Data\\timeunitDA.txt");
                timeunit = await Windows.Storage.FileIO.ReadLinesAsync(time);

                var vol = await Package.Current.InstalledLocation.GetFileAsync("Data\\VolumeDA.txt");
                volunit = await Windows.Storage.FileIO.ReadLinesAsync(vol);
                unitCategory.ItemsSource = unit;
            }
            else
            {
                var txt = await Package.Current.InstalledLocation.GetFileAsync("Data\\Unit.txt");
                var unit = await Windows.Storage.FileIO.ReadLinesAsync(txt);

                var area = await Package.Current.InstalledLocation.GetFileAsync("Data\\Area.txt");
                areaunit = await Windows.Storage.FileIO.ReadLinesAsync(area);

                var ene = await Package.Current.InstalledLocation.GetFileAsync("Data\\Energy.txt");
                eneunit = await Windows.Storage.FileIO.ReadLinesAsync(ene);

                var len = await Package.Current.InstalledLocation.GetFileAsync("Data\\Length.txt");
                lenunit = await Windows.Storage.FileIO.ReadLinesAsync(len);

                var ma = await Package.Current.InstalledLocation.GetFileAsync("Data\\Mass.txt");
                maunit = await Windows.Storage.FileIO.ReadLinesAsync(ma);

                var sp = await Package.Current.InstalledLocation.GetFileAsync("Data\\Speed.txt");
                spunit = await Windows.Storage.FileIO.ReadLinesAsync(sp);

                var temp = await Package.Current.InstalledLocation.GetFileAsync("Data\\Temp.txt");
                tempunit = await Windows.Storage.FileIO.ReadLinesAsync(temp);

                var time = await Package.Current.InstalledLocation.GetFileAsync("Data\\timeunit.txt");
                timeunit = await Windows.Storage.FileIO.ReadLinesAsync(time);

                var vol = await Package.Current.InstalledLocation.GetFileAsync("Data\\Volume.txt");
                volunit = await Windows.Storage.FileIO.ReadLinesAsync(vol);
                unitCategory.ItemsSource = unit;
            }
           

            

            
        }

        private void unitCategory_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // Action for selecting unit in combobox.
            unitFrom.Visibility = Visibility.Visible;
            unitTo.Visibility = Visibility.Visible;
            choose.Visibility = Visibility.Collapsed;
            choose_Copy.Visibility = Visibility.Visible;
            fromText.Visibility = Visibility.Visible;
            toText.Visibility = Visibility.Visible;
            convertinput.Visibility = Visibility.Visible;
            Calculate.Visibility = Visibility.Visible;
            Input_amount.Visibility = Visibility.Visible;
        }

        private void OnDropClose(object sender, object e)
        {
            try
            {
                var cult = System.Globalization.CultureInfo.CurrentUICulture;
            if (cult.Name == "da")
            {
                    if (unitCategory.SelectedItem.Equals("Område"))
                {
                    unitFrom.ItemsSource = areaunit;
                    unitTo.ItemsSource = areaunit;
                }

                if (unitCategory.SelectedItem.Equals("Energi"))
                {
                    unitFrom.ItemsSource = eneunit;
                    unitTo.ItemsSource = eneunit;
                }

                if (unitCategory.SelectedItem.Equals("Længde"))
                {
                    unitFrom.ItemsSource = lenunit;
                    unitTo.ItemsSource = lenunit;
                }

                if (unitCategory.SelectedItem.Equals("Masse"))
                {
                    unitFrom.ItemsSource = maunit;
                    unitTo.ItemsSource = maunit;
                }

                if (unitCategory.SelectedItem.Equals("Hastighed"))
                {
                    unitFrom.ItemsSource = spunit;
                    unitTo.ItemsSource = spunit;
                }

                if (unitCategory.SelectedItem.Equals("Temperatur"))
                {
                    unitFrom.ItemsSource = tempunit;
                    unitTo.ItemsSource = tempunit;
                }

                if (unitCategory.SelectedItem.Equals("Volume"))
                {
                    unitFrom.ItemsSource = volunit;
                    unitTo.ItemsSource = volunit;
                }

                if (unitCategory.SelectedItem.Equals("Tid"))
                {
                    unitFrom.ItemsSource = timeunit;
                    unitTo.ItemsSource = timeunit;
                }

            }
            else
            {
                if (unitCategory.SelectedItem.Equals("Area"))
                {
                    unitFrom.ItemsSource = areaunit;
                    unitTo.ItemsSource = areaunit;
                }

                if (unitCategory.SelectedItem.Equals("Energy"))
                {
                    unitFrom.ItemsSource = eneunit;
                    unitTo.ItemsSource = eneunit;
                }

                if (unitCategory.SelectedItem.Equals("Length"))
                {
                    unitFrom.ItemsSource = lenunit;
                    unitTo.ItemsSource = lenunit;
                }

                if (unitCategory.SelectedItem.Equals("Mass"))
                {
                    unitFrom.ItemsSource = maunit;
                    unitTo.ItemsSource = maunit;
                }

                if (unitCategory.SelectedItem.Equals("Speed"))
                {
                    unitFrom.ItemsSource = spunit;
                    unitTo.ItemsSource = spunit;
                }

                if (unitCategory.SelectedItem.Equals("Temperature"))
                {
                    unitFrom.ItemsSource = tempunit;
                    unitTo.ItemsSource = tempunit;
                }

                if (unitCategory.SelectedItem.Equals("Volume"))
                {
                    unitFrom.ItemsSource = volunit;
                    unitTo.ItemsSource = volunit;
                }
                if (unitCategory.SelectedItem.Equals("Time"))
                {
                    unitFrom.ItemsSource = timeunit;
                    unitTo.ItemsSource = timeunit;
                }
            }
            }
            catch
            {
            
            }
        }

        private void btnClick(object sender, RoutedEventArgs e)
        {
            var cult = System.Globalization.CultureInfo.CurrentUICulture;
            if (cult.Name == "da")
            {
                string s = unitFrom.SelectedItem + "+" + unitTo.SelectedItem;

                switch (s)
                {
                        //Length
                    case "Kilometer+Meter":
                        double resultkm = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = resultkm.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Kilometer":
                        double resultmk = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = resultmk.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Centimeter":
                        double resultKC = double.Parse(convertinput.Text)*10000;
                        converttxt.Text = resultKC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Kilometer":
                        double resultCK = double.Parse(convertinput.Text)/10000;
                        converttxt.Text = resultCK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Millimeter":
                        double resultKM = double.Parse(convertinput.Text)*100000;
                        converttxt.Text = resultKM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Kilometer":
                        double resultMK = double.Parse(convertinput.Text)/100000;
                        converttxt.Text = resultMK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Mil":
                        double resultKMi = double.Parse(convertinput.Text)/1.609344;
                        converttxt.Text = resultKMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Kilometer":
                        double resultMiK = double.Parse(convertinput.Text)*1.609344;
                        converttxt.Text = resultMiK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Yards":
                        double resultKY = double.Parse(convertinput.Text)*1093.613298;
                        converttxt.Text = resultKY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Kilometer":
                        double resultYK = double.Parse(convertinput.Text)/1093.613298;
                        converttxt.Text = resultYK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Fod":
                        double resultKF = double.Parse(convertinput.Text)*3280.839895;
                        converttxt.Text = resultKF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Kilometer":
                        double resultFK = double.Parse(convertinput.Text)/3280.839895;
                        converttxt.Text = resultFK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Inches":
                        double resultKI = double.Parse(convertinput.Text)*39370.07874;
                        converttxt.Text = resultKI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Kilometer":
                        double resultIK = double.Parse(convertinput.Text)/39370.07874;
                        converttxt.Text = resultIK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Now all the kilometers are done! Next Meters
                    case "Meter+Centimeter":
                        double resultMC = double.Parse(convertinput.Text)*100;
                        converttxt.Text = resultMC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Meter":
                        double resultCM = double.Parse(convertinput.Text)/100;
                        converttxt.Text = resultCM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Millimeter":
                        double resultMM = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = resultMM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Meter":
                        double resultMilM = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = resultMilM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Mil":
                        double resultMMi = double.Parse(convertinput.Text)/1609.344;
                        converttxt.Text = resultMMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Meter":
                        double resultMiM = double.Parse(convertinput.Text)*1609.344;
                        converttxt.Text = resultMiM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Yards":
                        double resultMY = double.Parse(convertinput.Text)*1.093613298;
                        converttxt.Text = resultMY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Meter":
                        double resultYM = double.Parse(convertinput.Text)/1.093613298;
                        converttxt.Text = resultYM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Fod":
                        double resultMF = double.Parse(convertinput.Text)*3.280839895;
                        converttxt.Text = resultMF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Meter":
                        double resultFM = double.Parse(convertinput.Text)/3.280839895;
                        converttxt.Text = resultFM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Inches":
                        double resultMI = double.Parse(convertinput.Text)*39.37007874;
                        converttxt.Text = resultMI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Meter":
                        double resultIM = double.Parse(convertinput.Text)/39.37007874;
                        converttxt.Text = resultIM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Meter Done!
                    case "Centimeter+Millimeter":
                        double resultCeM = double.Parse(convertinput.Text)*10;
                        converttxt.Text = resultCeM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Centimeter":
                        double resultMilC = double.Parse(convertinput.Text)/10;
                        converttxt.Text = resultMilC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Mil":
                        double resultCMi = double.Parse(convertinput.Text)/160934.4;
                        //TODO FIX! E-06
                        converttxt.Text = resultCMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Centimeter":
                        double resultMiC = double.Parse(convertinput.Text)*160934.4;
                        converttxt.Text = resultMiC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Yards":
                        double resultCY = double.Parse(convertinput.Text)*0.01093613298;
                        converttxt.Text = resultCY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Centimeter":
                        double resultYC = double.Parse(convertinput.Text)/0.01093613298;
                        converttxt.Text = resultYC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Fod":
                        double resultCF = double.Parse(convertinput.Text)*0.03280839895;
                        converttxt.Text = resultCF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Centimeter":
                        double resultFC = double.Parse(convertinput.Text)/0.03280839895;
                        converttxt.Text = resultFC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Inches":
                        double resultCI = double.Parse(convertinput.Text)*0.3937007874;
                        converttxt.Text = resultCI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Centimeter":
                        double resultIC = double.Parse(convertinput.Text)/0.3937007874;
                        converttxt.Text = resultIC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Centimeter done!
                    case "Millimeter+Mil":
                        double resultMillMi = double.Parse(convertinput.Text)/1609344;
                        converttxt.Text = resultMillMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Millimeter":
                        double resultMiMill = double.Parse(convertinput.Text)*1609344;
                        converttxt.Text = resultMiMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Yards":
                        double resultMillY = double.Parse(convertinput.Text)*0.001093613298;
                        converttxt.Text = resultMillY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Millimeter":
                        double resultYMill = double.Parse(convertinput.Text)/0.001093613298;
                        converttxt.Text = resultYMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Fod":
                        double resultMillF = double.Parse(convertinput.Text)*0.003280839895;
                        converttxt.Text = resultMillF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Millimeter":
                        double resultFMill = double.Parse(convertinput.Text)/0.003280839895;
                        converttxt.Text = resultFMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Inches":
                        double resultMillI = double.Parse(convertinput.Text)*0.03937007874;
                        converttxt.Text = resultMillI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Millimeter":
                        double resultIMill = double.Parse(convertinput.Text)/0.03937007874;
                        converttxt.Text = resultIMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Millimeter Done!
                    case "Mil+Yards":
                        double resultMilY = double.Parse(convertinput.Text)*1760;
                        converttxt.Text = resultMilY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Mil":
                        double resultYMil = double.Parse(convertinput.Text)/1760;
                        converttxt.Text = resultYMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Fod":
                        double resultMilF = double.Parse(convertinput.Text)*5280;
                        converttxt.Text = resultMilF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Mil":
                        double resultFMil = double.Parse(convertinput.Text)/5280;
                        converttxt.Text = resultFMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mil+Inches":
                        double resultMilI = double.Parse(convertinput.Text)*63360;
                        converttxt.Text = resultMilI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Mil":
                        double resultIMil = double.Parse(convertinput.Text)/63360;
                        converttxt.Text = resultIMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Mil done!
                    case "Yards+Fod":
                        double resultYF = double.Parse(convertinput.Text)*3;
                        converttxt.Text = resultYF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Fod+Yards":
                        double resultFY = double.Parse(convertinput.Text)/3;
                        converttxt.Text = resultFY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Inches":
                        double resultYI = double.Parse(convertinput.Text)*36;
                        converttxt.Text = resultYI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Yards":
                        double resultIY = double.Parse(convertinput.Text)/36;
                        converttxt.Text = resultIY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Yards done!
                    case "Fod+Inches":
                        double resultFI = double.Parse(convertinput.Text)*12;
                        converttxt.Text = resultFI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Fod":
                        double resultIF = double.Parse(convertinput.Text)/12;
                        converttxt.Text = resultIF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Length done !!!!!!
                        //Energy

                    case "Joule (J)+NewtonMeter (Nm)":
                        double resultJouleNewton = double.Parse(convertinput.Text);
                        converttxt.Text = resultJouleNewton.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "NewtonMeter (Nm)+Joule (J)":
                        double resultNewtonJoule = double.Parse(convertinput.Text);
                        converttxt.Text = resultNewtonJoule.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //Temperature

                    case "Celcius+Kelvin":
                        double resultCelciusKelvin = double.Parse(convertinput.Text) + 273.15;
                        converttxt.Text = resultCelciusKelvin.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kelvin+Celcius":
                        double resultKelvinCelcius = double.Parse(convertinput.Text) - 273.15;
                        converttxt.Text = resultKelvinCelcius.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Celcius+Fahrenheit":
                        double resultCelciusFahrenheit = double.Parse(convertinput.Text)*1.8 + 32;
                        converttxt.Text = resultCelciusFahrenheit.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Fahrenheit+Celcius":
                        double resultFahrenheitCelcius = double.Parse(convertinput.Text) - 32;
                        resultFahrenheitCelcius = resultFahrenheitCelcius/1.8;
                        converttxt.Text = resultFahrenheitCelcius.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Fahrenheit+Kelvin":
                        double resultFahrenheitKelvin = double.Parse(convertinput.Text) - 32;
                        resultFahrenheitKelvin = resultFahrenheitKelvin/1.8;
                        resultFahrenheitKelvin = resultFahrenheitKelvin + 273.15;
                        converttxt.Text = resultFahrenheitKelvin.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kelvin+Fahrenheit":
                        double resultKelvinFahrenheit = double.Parse(convertinput.Text) - 273.15;
                        resultKelvinFahrenheit = resultKelvinFahrenheit*1.8 + 32;
                        converttxt.Text = resultKelvinFahrenheit.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //Area


                    case "KvadratInch+Kvadratfod":
                        double KvadratInchSqFod = double.Parse(convertinput.Text)/144;
                        converttxt.Text = KvadratInchSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqFod+KvadratInch":
                        double SqFodKvadratInch = double.Parse(convertinput.Text)*144;
                        converttxt.Text = SqFodKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratInch+KvadratYard":
                        double KvadratInchKvadratYard = double.Parse(convertinput.Text)/1296;
                        converttxt.Text = KvadratInchKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratYard+KvadratInch":
                        double KvadratYardKvadratInch = double.Parse(convertinput.Text)*1296;
                        converttxt.Text = KvadratYardKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratInch+Acre":
                        double KvadratInchAcre = double.Parse(convertinput.Text)/6272640;
                        converttxt.Text = KvadratInchAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Acre+KvadratInch":
                        double AcreKvadratInch = double.Parse(convertinput.Text)*6272640;
                        converttxt.Text = AcreKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratInch+KvadratMil":
                        double KvadratInchKvadratMil = double.Parse(convertinput.Text)/4014489600;
                        converttxt.Text = KvadratInchKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratMil+KvadratInch":
                        double KvadratMilKvadratInch = double.Parse(convertinput.Text)*4014489600;
                        converttxt.Text = KvadratMilKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "KvadratInch+KvadratMilimeter":
                        double KvadratInchKvadratMilimeter = double.Parse(convertinput.Text)*645.16;
                        converttxt.Text = KvadratInchKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratInch":
                        double KvadratMilimeterKvadratInch = double.Parse(convertinput.Text)/645.16;
                        converttxt.Text = KvadratMilimeterKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratInch+KvadratCentimeter":
                        double KvadratInchKvadratCentimeter = double.Parse(convertinput.Text)*6.4516;
                        converttxt.Text = KvadratInchKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratInch":
                        double KvadratCentimeterKvadratInch = double.Parse(convertinput.Text)/6.4516;
                        converttxt.Text = KvadratCentimeterKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratInch+KvadratMeter":
                        double KvadratInchKvadratMeter = double.Parse(convertinput.Text)*0.00064516;
                        converttxt.Text = KvadratInchKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratInch":
                        double KvadratMeterKvadratInch = double.Parse(convertinput.Text)/0.00064516;
                        converttxt.Text = KvadratMeterKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratInch+KvadratKilometer":
                        double KvadratInchKvadratKilometer = double.Parse(convertinput.Text)*0.00000000064516;
                        converttxt.Text = KvadratInchKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratInch":
                        double KvadratKilometerKvadratInch = double.Parse(convertinput.Text)/0.00000000064516;
                        converttxt.Text = KvadratKilometerKvadratInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //KvadratInch Done!!
                    case "SqFod+KvadratYard":
                        double SqFodKvadratYard = double.Parse(convertinput.Text)/9;
                        converttxt.Text = SqFodKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+SqFod":
                        double KvadratYardSqFod = double.Parse(convertinput.Text)*9;
                        converttxt.Text = KvadratYardSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+Acre":
                        double SqFodAcre = double.Parse(convertinput.Text)/43560;
                        converttxt.Text = SqFodAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqFod":
                        double AcreSqFod = double.Parse(convertinput.Text)*43560;
                        converttxt.Text = AcreSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+KvadratMil":
                        double SqFodKvadratMil = double.Parse(convertinput.Text)/27878400;
                        converttxt.Text = SqFodKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+SqFod":
                        double KvadratMilSqFod = double.Parse(convertinput.Text)*27878400;
                        converttxt.Text = KvadratMilSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+KvadratMilimeter":
                        double SqFodKvadratMilimeter = double.Parse(convertinput.Text)*92903.04;
                        converttxt.Text = SqFodKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+SqFod":
                        double KvadratMilimeterSqFod = double.Parse(convertinput.Text)/92903.04;
                        converttxt.Text = KvadratMilimeterSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+KvadratCentimeter":
                        double SqFodKvadratCentimeter = double.Parse(convertinput.Text)*929.0304;
                        converttxt.Text = SqFodKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+SqFod":
                        double KvadratCentimeterSqFod = double.Parse(convertinput.Text)/929.0304;
                        converttxt.Text = KvadratCentimeterSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+KvadratMeter":
                        double SqFodKvadratMeter = double.Parse(convertinput.Text)*0.09290304;
                        converttxt.Text = SqFodKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+SqFod":
                        double KvadratMeterSqFod = double.Parse(convertinput.Text)/0.09290304;
                        converttxt.Text = KvadratMeterSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFod+KvadratKilometer":
                        double SqFodKvadratKilometer = double.Parse(convertinput.Text)*0.00000009290304;
                        converttxt.Text = SqFodKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+SqFod":
                        double KvadratKilometerSqFod = double.Parse(convertinput.Text)/0.00000009290304;
                        converttxt.Text = KvadratKilometerSqFod.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //SqFod done!

                    case "KvadratYard+Acre":
                        double KvadratYardAcre = double.Parse(convertinput.Text)/4840;
                        converttxt.Text = KvadratYardAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+KvadratYard":
                        double AcreKvadratYard = double.Parse(convertinput.Text)*4840;
                        converttxt.Text = AcreKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+KvadratMil":
                        double KvadratYardKvadratMil = double.Parse(convertinput.Text)/3097600;
                        converttxt.Text = KvadratYardKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+KvadratYard":
                        double KvadratMilKvadratYard = double.Parse(convertinput.Text)*3097600;
                        converttxt.Text = KvadratMilKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+KvadratMilimeter":
                        double KvadratYardKvadratMilimeter = double.Parse(convertinput.Text)*836127.36;
                        converttxt.Text = KvadratYardKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratYard":
                        double KvadratMilimeterKvadratYard = double.Parse(convertinput.Text)/836127.36;
                        converttxt.Text = KvadratMilimeterKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+KvadratCentimeter":
                        double KvadratYardKvadratCentimeter = double.Parse(convertinput.Text)*8361.2736;
                        converttxt.Text = KvadratYardKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratYard":
                        double KvadratCentimeterKvadratYard = double.Parse(convertinput.Text)/8361.2736;
                        converttxt.Text = KvadratCentimeterKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+KvadratMeter":
                        double KvadratYardKvadratMeter = double.Parse(convertinput.Text)*0.83612736;
                        converttxt.Text = KvadratYardKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratYard":
                        double KvadratMeterKvadratYard = double.Parse(convertinput.Text)/0.83612736;
                        converttxt.Text = KvadratMeterKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratYard+KvadratKilometer":
                        double KvadratYardKvadratKilometer = double.Parse(convertinput.Text)*0.00000083612736;
                        converttxt.Text = KvadratYardKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratYard":
                        double KvadratKilometerKvadratYard = double.Parse(convertinput.Text)/0.00000083612736;
                        converttxt.Text = KvadratKilometerKvadratYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //KvadratYard 

                    case "Acre+KvadratMil":
                        double AcreKvadratMil = double.Parse(convertinput.Text)/640;
                        converttxt.Text = AcreKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+Acre":
                        double KvadratMilAcre = double.Parse(convertinput.Text)*640;
                        converttxt.Text = KvadratMilAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+KvadratMilimeter":
                        double AcreKvadratMilimeter = double.Parse(convertinput.Text)*4046856422.4;
                        converttxt.Text = AcreKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+Acre":
                        double KvadratMilimeterAcre = double.Parse(convertinput.Text)/4046856422.4;
                        converttxt.Text = KvadratMilimeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+KvadratCentimeter":
                        double AcreKvadratCentimeter = double.Parse(convertinput.Text)*40468564.224;
                        converttxt.Text = AcreKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+Acre":
                        double KvadratCentimeterAcre = double.Parse(convertinput.Text)/40468564.224;
                        converttxt.Text = KvadratCentimeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+KvadratMeter":
                        double AcreKvadratMeter = double.Parse(convertinput.Text)*4046.8564224;
                        converttxt.Text = AcreKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+Acre":
                        double KvadratMeterAcre = double.Parse(convertinput.Text)/4046.8564224;
                        converttxt.Text = KvadratMeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                    case "Acre+KvadratKilometer":
                        double AcreKvadratKilometer = double.Parse(convertinput.Text)*0.0040468564224;
                        converttxt.Text = AcreKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+Acre":
                        double KvadratKilometerAcre = double.Parse(convertinput.Text)/0.0040468564224;
                        converttxt.Text = KvadratKilometerAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Acre Done!

                    case "KvadratMil+KvadratMilimeter":
                        double KvadratMilKvadratMilimeter = double.Parse(convertinput.Text)*2589988110336;
                        converttxt.Text = KvadratMilKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratMil":
                        double KvadratMilimeterKvadratMil = double.Parse(convertinput.Text)/2589988110336;
                        converttxt.Text = KvadratMilimeterKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+KvadratCentimeter":
                        double KvadratMilKvadratCentimeter = double.Parse(convertinput.Text)*25899881103.36;
                        converttxt.Text = KvadratMilKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratMil":
                        double KvadratCentimeterKvadratMil = double.Parse(convertinput.Text)/25899881103.36;
                        converttxt.Text = KvadratCentimeterKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+KvadratMeter":
                        double KvadratMilKvadratMeter = double.Parse(convertinput.Text)*2589988.110336;
                        converttxt.Text = KvadratMilKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratMil":
                        double KvadratMeterKvadratMil = double.Parse(convertinput.Text)/2589988.110336;
                        converttxt.Text = KvadratMeterKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMil+KvadratKilometer":
                        double KvadratMilKvadratKilometer = double.Parse(convertinput.Text)*2.589988110336;
                        converttxt.Text = KvadratMilKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratMil":
                        double KvadratKilometerKvadratMil = double.Parse(convertinput.Text)/2.589988110336;
                        converttxt.Text = KvadratKilometerKvadratMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratCentimeter":
                        double KvadratMilimeterKvadratCentimeter = double.Parse(convertinput.Text)/100;
                        converttxt.Text = KvadratMilimeterKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratMilimeter":
                        double KvadratCentimeterKvadratMilimeter = double.Parse(convertinput.Text)*100;
                        converttxt.Text = KvadratCentimeterKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratMeter":
                        double KvadratMilimeterKvadratMeter = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = KvadratMilimeterKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratMilimeter":
                        double KvadratMeterKvadratMilimeter = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = KvadratMeterKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMilimeter+KvadratKilometer":
                        double KvadratMilimeterKvadratKilometer = double.Parse(convertinput.Text)/1000000000000;
                        converttxt.Text = KvadratMilimeterKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratMilimeter":
                        double KvadratKilometerKvadratMilimeter = double.Parse(convertinput.Text)*1000000000000;
                        converttxt.Text = KvadratKilometerKvadratMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratMeter":
                        double KvadratCentimeterKvadratMeter = double.Parse(convertinput.Text)/10000;
                        converttxt.Text = KvadratCentimeterKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratCentimeter":
                        double KvadratMeterKvadratCentimeter = double.Parse(convertinput.Text)*10000;
                        converttxt.Text = KvadratMeterKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratCentimeter+KvadratKilometer":
                        double KvadratCentimeterKvadratKilometer = double.Parse(convertinput.Text)/10000000000;
                        converttxt.Text = KvadratCentimeterKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratCentimeter":
                        double KvadratKilometerKvadratCentimeter = double.Parse(convertinput.Text)*10000000000;
                        converttxt.Text = KvadratKilometerKvadratCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratMeter+KvadratKilometer":
                        double KvadratMeterKvadratKilometer = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = KvadratMeterKvadratKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KvadratKilometer+KvadratMeter":
                        double KvadratKilometerKvadratMeter = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = KvadratKilometerKvadratMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Area Done!
                        //Next Mass!

                    case "Ounces+Pund":
                        double OuncesPund = double.Parse(convertinput.Text)/16;
                        converttxt.Text = OuncesPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+Ounces":
                        double PundOunces = double.Parse(convertinput.Text)*16;
                        converttxt.Text = PundOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Stone":
                        double OuncesStone = double.Parse(convertinput.Text)/224;
                        converttxt.Text = OuncesStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Ounces":
                        double StoneOunces = double.Parse(convertinput.Text)*224;
                        converttxt.Text = StoneOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Ton":
                        double OuncesTon = double.Parse(convertinput.Text)/32000;
                        converttxt.Text = OuncesTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Ounces":
                        double TonOunces = double.Parse(convertinput.Text)*32000;
                        converttxt.Text = TonOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+MetriskTons":
                        double OuncesMetriskTons = double.Parse(convertinput.Text)/35273.96194958041;
                        converttxt.Text = OuncesMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Ounces":
                        double MetriskTonsOunces = double.Parse(convertinput.Text)*35273.96194958041;
                        converttxt.Text = MetriskTonsOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+ImperiskTons":
                        double OuncesImperiskTons = double.Parse(convertinput.Text)/35840;
                        converttxt.Text = OuncesImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Ounces":
                        double ImperiskTonsOunces = double.Parse(convertinput.Text)*35840;
                        converttxt.Text = ImperiskTonsOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Gram":
                        double OuncesGram = double.Parse(convertinput.Text)*28.349523125;
                        converttxt.Text = OuncesGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Ounces":
                        double GramOunces = double.Parse(convertinput.Text)/28.349523125;
                        converttxt.Text = GramOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Kilogram":
                        double OuncesKilogram = double.Parse(convertinput.Text)/35.27396194958041;
                        converttxt.Text = OuncesKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Ounces":
                        double KilogramOunces = double.Parse(convertinput.Text)*35.27396194958041;
                        converttxt.Text = KilogramOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+Stone":
                        double PundStone = double.Parse(convertinput.Text)/14;
                        converttxt.Text = PundStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Pund":
                        double StonePund = double.Parse(convertinput.Text)*14;
                        converttxt.Text = StonePund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+Ton":
                        double PundTon = double.Parse(convertinput.Text)/2000;
                        converttxt.Text = PundTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Pund":
                        double TonPund = double.Parse(convertinput.Text)*2000;
                        converttxt.Text = TonPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+MetriskTons":
                        double PundMetriskTons = double.Parse(convertinput.Text)/2204.622621848776;
                        converttxt.Text = PundMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Pund":
                        double MetriskTonsPund = double.Parse(convertinput.Text)*2204.622621848776;
                        converttxt.Text = MetriskTonsPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+ImperiskTons":
                        double PundImperiskTons = double.Parse(convertinput.Text)/2240;
                        converttxt.Text = PundImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Pund":
                        double ImperiskTonsPund = double.Parse(convertinput.Text)*2240;
                        converttxt.Text = ImperiskTonsPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+Gram":
                        double PundGram = double.Parse(convertinput.Text)*453.59237;
                        converttxt.Text = PundGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Pund":
                        double GramPund = double.Parse(convertinput.Text)/453.59237;
                        converttxt.Text = GramPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pund+Kilogram":
                        double PundKilogram = double.Parse(convertinput.Text)/2.204622621848776;
                        converttxt.Text = PundKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Pund":
                        double KilogramPund = double.Parse(convertinput.Text)*2.204622621848776;
                        converttxt.Text = KilogramPund.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Ton":
                        double StoneTon = double.Parse(convertinput.Text)/142.8571428571429;
                        converttxt.Text = StoneTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Stone":
                        double TonStone = double.Parse(convertinput.Text)*142.8571428571429;
                        converttxt.Text = TonStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+MetriskTons":
                        double StoneMetriskTons = double.Parse(convertinput.Text)/157.4730444177697;
                        converttxt.Text = StoneMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Stone":
                        double MetriskTonsStone = double.Parse(convertinput.Text)*157.4730444177697;
                        converttxt.Text = MetriskTonsStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+ImperiskTons":
                        double StoneImperiskTons = double.Parse(convertinput.Text)/160;
                        converttxt.Text = StoneImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Stone":
                        double ImperiskTonsStone = double.Parse(convertinput.Text)*160;
                        converttxt.Text = ImperiskTonsStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Gram":
                        double StoneGram = double.Parse(convertinput.Text)*6350.29318;
                        converttxt.Text = StoneGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Stone":
                        double GramStone = double.Parse(convertinput.Text)/6350.29318;
                        converttxt.Text = GramStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Kilogram":
                        double StoneKilogram = double.Parse(convertinput.Text)*6.35029318;
                        converttxt.Text = StoneKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Stone":
                        double KilogramStone = double.Parse(convertinput.Text)*6.35029318;
                        converttxt.Text = KilogramStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+MetriskTons":
                        double TonMetriskTons = double.Parse(convertinput.Text)/1.102311310924388;
                        converttxt.Text = TonMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Ton":
                        double MetriskTonsTon = double.Parse(convertinput.Text)*1.102311310924388;
                        converttxt.Text = MetriskTonsTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+ImperiskTons":
                        double TonImperiskTons = double.Parse(convertinput.Text)/1.12;
                        converttxt.Text = TonImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Ton":
                        double ImperiskTonsTon = double.Parse(convertinput.Text)*1.12;
                        converttxt.Text = ImperiskTonsTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Gram":
                        double TonGram = double.Parse(convertinput.Text)*907184.74;
                        converttxt.Text = TonGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Ton":
                        double GramTon = double.Parse(convertinput.Text)/907184.74;
                        converttxt.Text = GramTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Kilogram":
                        double TonKilogram = double.Parse(convertinput.Text)*907.18474;
                        converttxt.Text = TonKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Ton":
                        double KilogramTon = double.Parse(convertinput.Text)/907.18474;
                        converttxt.Text = KilogramTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+ImperiskTons":
                        double MetriskTonsImperiskTons = double.Parse(convertinput.Text)/1.0160469088;
                        converttxt.Text = MetriskTonsImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+MetriskTons":
                        double ImperiskTonsMetriskTons = double.Parse(convertinput.Text)*1.0160469088;
                        converttxt.Text = ImperiskTonsMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Gram":
                        double MetriskTonsGram = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = MetriskTonsGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+MetriskTons":
                        double GramMetriskTons = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = GramMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetriskTons+Kilogram":
                        double MetriskTonsKilogram = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = MetriskTonsKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+MetriskTons":
                        double KilogramMetriskTons = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = KilogramMetriskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Gram":
                        double ImperiskTonsGram = double.Parse(convertinput.Text)*1016046.9088;
                        converttxt.Text = ImperiskTonsGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+ImperiskTons":
                        double GramImperiskTons = double.Parse(convertinput.Text)/1016046.9088;
                        converttxt.Text = GramImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperiskTons+Kilogram":
                        double ImperiskTonsKilogram = double.Parse(convertinput.Text)*1016.0469088;
                        converttxt.Text = ImperiskTonsKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+ImperiskTons":
                        double KilogramImperiskTons = double.Parse(convertinput.Text)/1016.0469088;
                        converttxt.Text = KilogramImperiskTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Kilogram":
                        double GramKilogram = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = GramKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Gram":
                        double KilogramGram = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = KilogramGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Mass Done!

                    case "KilometerITimen(Km/T)+MileITimen(M/T)":
                        double KilometerPerHourMilsPerHour = double.Parse(convertinput.Text)/1.609344;
                        converttxt.Text = KilometerPerHourMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+KilometerITimen(Km/T)":
                        double MilsPerHourKilometerPerHour = double.Parse(convertinput.Text)*1.609344;
                        converttxt.Text = MilsPerHourKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerITimen(Km/T)+Knob":
                        double KilometerPerHourKnob = double.Parse(convertinput.Text)/1.852;
                        converttxt.Text = KilometerPerHourKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+KilometerITimen(Km/T)":
                        double KnobKilometerPerHour = double.Parse(convertinput.Text)*1.852;
                        converttxt.Text = KnobKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerITimen(Km/T)+Sømil/timen":
                        double KnobKilometerPerHourNautical = double.Parse(convertinput.Text)/1.852;
                        converttxt.Text = KnobKilometerPerHourNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+KilometerITimen(Km/T)":
                        double NauticalKilometerPerHour = double.Parse(convertinput.Text)*1.852;
                        converttxt.Text = NauticalKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerITimen(Km/T)+Meters/Sekund (m/s)":
                        double KilometerPerHourMeters = double.Parse(convertinput.Text)/3.6;
                        converttxt.Text = KilometerPerHourMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+KilometerITimen(Km/T)":
                        double MetersKilometerPerHour = double.Parse(convertinput.Text)*3.6;
                        converttxt.Text = MetersKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerITimen(Km/T)+Mach":
                        double KilometerPerHourMach = double.Parse(convertinput.Text)/1225.05588;
                        converttxt.Text = KilometerPerHourMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+KilometerITimen(Km/T)":
                        double MachKilometerPerHour = double.Parse(convertinput.Text)*1225.05588;
                        converttxt.Text = MachKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerITimen(Km/T)+Lysets Hastighed":
                        double KilometerPerTimerpeed = double.Parse(convertinput.Text)/1079244000;
                        converttxt.Text = KilometerPerTimerpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+KilometerITimen(Km/T)":
                        double SpeedKilometerPerHour = double.Parse(convertinput.Text)*1079244000;
                        converttxt.Text = SpeedKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+Knob":
                        double MilsPerHourKnob = double.Parse(convertinput.Text)/1.150779;
                        converttxt.Text = MilsPerHourKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+MileITimen(M/T)":
                        double KnobMilsPerHour = double.Parse(convertinput.Text)*1.150779;
                        converttxt.Text = KnobMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+Sømil/timen":
                        double MilsPerHourNautical = double.Parse(convertinput.Text)/1.150779;
                        converttxt.Text = MilsPerHourNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+MileITimen(M/T)":
                        double NauticalMilsPerHour = double.Parse(convertinput.Text)*1.150779;
                        converttxt.Text = NauticalMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+Meters/Sekund (m/s)":
                        double MilsPerHourMeters = double.Parse(convertinput.Text)/2.236936;
                        converttxt.Text = MilsPerHourMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+MileITimen(M/T)":
                        double MetersMilsPerHour = double.Parse(convertinput.Text)*2.236936;
                        converttxt.Text = MetersMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+Mach":
                        double MilsPerHourMach = double.Parse(convertinput.Text)/761.214433;
                        converttxt.Text = MilsPerHourMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+MileITimen(M/T)":
                        double MachMilsPerHour = double.Parse(convertinput.Text)*761.214433;
                        converttxt.Text = MachMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MileITimen(M/T)+Lysets Hastighed":
                        double MilsPerTimerpeed = double.Parse(convertinput.Text)/670611130.994989;
                        converttxt.Text = MilsPerTimerpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+MileITimen(M/T)":
                        double SpeedMilsPerHour = double.Parse(convertinput.Text)*670611130.994989;
                        converttxt.Text = SpeedMilsPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+Sømil/timen":
                        double KnobNautical = double.Parse(convertinput.Text);
                        converttxt.Text = KnobNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+Knob":
                        double NauticalKnob = double.Parse(convertinput.Text);
                        converttxt.Text = NauticalKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+Meters/Sekund (m/s)":
                        double KnobMeters = double.Parse(convertinput.Text)/1.943844;
                        converttxt.Text = KnobMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+Knob":
                        double MetersKnob = double.Parse(convertinput.Text)*1.943844;
                        converttxt.Text = MetersKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+Mach":
                        double KnobMach = double.Parse(convertinput.Text)/661.477257;
                        converttxt.Text = KnobMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Knob":
                        double MachKnob = double.Parse(convertinput.Text)*661.477257;
                        converttxt.Text = MachKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knob+Lysets Hastighed":
                        double KnobSpeed = double.Parse(convertinput.Text)/582745140.388769;
                        converttxt.Text = KnobSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+Knob":
                        double SpeedKnob = double.Parse(convertinput.Text)*582745140.388769;
                        converttxt.Text = SpeedKnob.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+Meters/Sekund (m/s)":
                        double NauticalMeters = double.Parse(convertinput.Text)/1.943844;
                        converttxt.Text = NauticalMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+Sømil/timen":
                        double MetersNautical = double.Parse(convertinput.Text)*1.943844;
                        converttxt.Text = MetersNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+Mach":
                        double NauticalMach = double.Parse(convertinput.Text)/661.477257;
                        converttxt.Text = NauticalMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Sømil/timen":
                        double MachNautical = double.Parse(convertinput.Text)*661.477257;
                        converttxt.Text = MachNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Sømil/timen+Lysets Hastighed":
                        double NauticalSpeed = double.Parse(convertinput.Text)/582745140.388769;
                        converttxt.Text = NauticalSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+Sømil/timen":
                        double SpeedNautical = double.Parse(convertinput.Text)*582745140.388769;
                        converttxt.Text = SpeedNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+Mach":
                        double MetersMach = double.Parse(convertinput.Text)/340.2933;
                        converttxt.Text = MetersMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Meters/Sekund (m/s)":
                        double MachMeters = double.Parse(convertinput.Text)*340.2933;
                        converttxt.Text = MachMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Sekund (m/s)+Lysets Hastighed":
                        double MetersSpeed = double.Parse(convertinput.Text)/299790000;
                        converttxt.Text = MetersSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+Meters/Sekund (m/s)":
                        double SpeedMeters = double.Parse(convertinput.Text)*299790000;
                        converttxt.Text = SpeedMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Lysets Hastighed":
                        double MachSpeed = double.Parse(convertinput.Text)/880975.323346;
                        converttxt.Text = MachSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Lysets Hastighed+Mach":
                        double SpeedMach = double.Parse(convertinput.Text)*880975.323346;
                        converttxt.Text = SpeedMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Speed Done!                                                            
                    case "Millisekunder+Seconds":
                        double MillisekunderSeconds = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = MillisekunderSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Millisekunder":
                        double SecondsMillisekunder = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = SecondsMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Millisekunder+Minutter":
                        double MillisekunderMinutter = double.Parse(convertinput.Text)/60000;
                        converttxt.Text = MillisekunderMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+Millisekunder":
                        double MinutterMillisekunder = double.Parse(convertinput.Text)*60000;
                        converttxt.Text = MinutterMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Millisekunder+Timer":
                        double MillisekunderTimer = double.Parse(convertinput.Text)/3600000;
                        converttxt.Text = MillisekunderTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+Millisekunder":
                        double TimerMillisekunder = double.Parse(convertinput.Text)*3600000;
                        converttxt.Text = TimerMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Millisekunder+Dage":
                        double MillisekunderDage = double.Parse(convertinput.Text)/86400000;
                        converttxt.Text = MillisekunderDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Dage+Millisekunder":
                        double DageMillisekunder = double.Parse(convertinput.Text)*86400000;
                        converttxt.Text = DageMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Millisekunder+Uger":
                        double MillisekunderUger = double.Parse(convertinput.Text)/604800000;
                        converttxt.Text = MillisekunderUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+Millisekunder":
                        double UgerMillisekunder = double.Parse(convertinput.Text)*604800000;
                        converttxt.Text = UgerMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Millisekunder+År":
                        double MillisekunderÅr = double.Parse(convertinput.Text)/31536000000;
                        converttxt.Text = MillisekunderÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Millisekunder":
                        double ÅrMillisekunder = double.Parse(convertinput.Text)*31536000000;
                        converttxt.Text = ÅrMillisekunder.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SecondsMinutter":
                        double SecondsMinutter = double.Parse(convertinput.Text)/60;
                        converttxt.Text = SecondsMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+Seconds":
                        double MinutterSeconds = double.Parse(convertinput.Text)*60;
                        converttxt.Text = MinutterSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Timer":
                        double SecondsTimer = double.Parse(convertinput.Text)/3600;
                        converttxt.Text = SecondsTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+Seconds":
                        double TimerSeconds = double.Parse(convertinput.Text)*3600;
                        converttxt.Text = TimerSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Dage":
                        double SecondsDage = double.Parse(convertinput.Text)/86400;
                        converttxt.Text = SecondsDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "DageSeconds":
                        double DageSeconds = double.Parse(convertinput.Text)*86400;
                        converttxt.Text = DageSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Uger":
                        double SecondsUger = double.Parse(convertinput.Text)/604800;
                        converttxt.Text = SecondsUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+Seconds":
                        double UgerSeconds = double.Parse(convertinput.Text)*604800;
                        converttxt.Text = UgerSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+År":
                        double SecondsÅr = double.Parse(convertinput.Text)/31536000;
                        converttxt.Text = SecondsÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Seconds":
                        double ÅrSeconds = double.Parse(convertinput.Text)*31536000;
                        converttxt.Text = ÅrSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+Timer":
                        double MinutterTimer = double.Parse(convertinput.Text)/60;
                        converttxt.Text = MinutterTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+Minutter":
                        double TimerMinutter = double.Parse(convertinput.Text)*60;
                        converttxt.Text = TimerMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+Dage":
                        double MinutterDage = double.Parse(convertinput.Text)/1440;
                        converttxt.Text = MinutterDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Dage+Minutter":
                        double DageMinutter = double.Parse(convertinput.Text)*1440;
                        converttxt.Text = DageMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+Uger":
                        double MinutterUger = double.Parse(convertinput.Text)/10080;
                        converttxt.Text = MinutterUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+Minutter":
                        double UgerMinutter = double.Parse(convertinput.Text)*10080;
                        converttxt.Text = UgerMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutter+År":
                        double MinutterÅr = double.Parse(convertinput.Text)/525600;
                        converttxt.Text = MinutterÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Minutter":
                        double ÅrMinutter = double.Parse(convertinput.Text)*525600;
                        converttxt.Text = ÅrMinutter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+Dage":
                        double TimerDage = double.Parse(convertinput.Text)/24;
                        converttxt.Text = TimerDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Dage+Timer":
                        double DageTimer = double.Parse(convertinput.Text)*24;
                        converttxt.Text = DageTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+Uger":
                        double TimerUger = double.Parse(convertinput.Text)/168;
                        converttxt.Text = TimerUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+Timer":
                        double UgerTimer = double.Parse(convertinput.Text)*168;
                        converttxt.Text = UgerTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Timer+År":
                        double TimerÅr = double.Parse(convertinput.Text)/8760;
                        converttxt.Text = TimerÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Timer":
                        double ÅrTimer = double.Parse(convertinput.Text)*8760;
                        converttxt.Text = ÅrTimer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Dage+Uger":
                        double DageUger = double.Parse(convertinput.Text)/7;
                        converttxt.Text = DageUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+Dage":
                        double UgerDage = double.Parse(convertinput.Text)*7;
                        converttxt.Text = UgerDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Dage+År":
                        double DageÅr = double.Parse(convertinput.Text)/365;
                        converttxt.Text = DageÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Dage":
                        double ÅrDage = double.Parse(convertinput.Text)*365;
                        converttxt.Text = ÅrDage.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Uger+År":
                        double UgerÅr = double.Parse(convertinput.Text)/52.142857;
                        converttxt.Text = UgerÅr.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "År+Uger":
                        double ÅrUger = double.Parse(convertinput.Text)*52.142857;
                        converttxt.Text = ÅrUger.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Time done !!                                              
                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;

                        //case "":
                        //    double  = double.Parse(convertinput.Text);
                        //    converttxt.Text = .ToString();
                        //    Result.Visibility = Visibility.Visible;
                        //    converttxt.Visibility = Visibility.Visible;
                        //    break;










                }
            }
            else
            {
                string s = unitFrom.SelectedItem + "+" + unitTo.SelectedItem;

                switch (s)
                {
                        //Length
                    case "Kilometer+Meter":
                        double resultkm = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = resultkm.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Kilometer":
                        double resultmk = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = resultmk.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Centimeter":
                        double resultKC = double.Parse(convertinput.Text)*10000;
                        converttxt.Text = resultKC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Kilometer":
                        double resultCK = double.Parse(convertinput.Text)/10000;
                        converttxt.Text = resultCK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Millimeter":
                        double resultKM = double.Parse(convertinput.Text)*100000;
                        converttxt.Text = resultKM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Kilometer":
                        double resultMK = double.Parse(convertinput.Text)/100000;
                        converttxt.Text = resultMK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Mile":
                        double resultKMi = double.Parse(convertinput.Text)/1.609344;
                        converttxt.Text = resultKMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Kilometer":
                        double resultMiK = double.Parse(convertinput.Text)*1.609344;
                        converttxt.Text = resultMiK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Yards":
                        double resultKY = double.Parse(convertinput.Text)*1093.613298;
                        converttxt.Text = resultKY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Kilometer":
                        double resultYK = double.Parse(convertinput.Text)/1093.613298;
                        converttxt.Text = resultYK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Feet":
                        double resultKF = double.Parse(convertinput.Text)*3280.839895;
                        converttxt.Text = resultKF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Kilometer":
                        double resultFK = double.Parse(convertinput.Text)/3280.839895;
                        converttxt.Text = resultFK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Kilometer+Inches":
                        double resultKI = double.Parse(convertinput.Text)*39370.07874;
                        converttxt.Text = resultKI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Kilometer":
                        double resultIK = double.Parse(convertinput.Text)/39370.07874;
                        converttxt.Text = resultIK.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Now all the kilometers are done! Next Meters
                    case "Meter+Centimeter":
                        double resultMC = double.Parse(convertinput.Text)*100;
                        converttxt.Text = resultMC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Meter":
                        double resultCM = double.Parse(convertinput.Text)/100;
                        converttxt.Text = resultCM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Millimeter":
                        double resultMM = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = resultMM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Meter":
                        double resultMilM = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = resultMilM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Mile":
                        double resultMMi = double.Parse(convertinput.Text)/1609.344;
                        converttxt.Text = resultMMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Meter":
                        double resultMiM = double.Parse(convertinput.Text)*1609.344;
                        converttxt.Text = resultMiM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Yards":
                        double resultMY = double.Parse(convertinput.Text)*1.093613298;
                        converttxt.Text = resultMY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Meter":
                        double resultYM = double.Parse(convertinput.Text)/1.093613298;
                        converttxt.Text = resultYM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Feet":
                        double resultMF = double.Parse(convertinput.Text)*3.280839895;
                        converttxt.Text = resultMF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Meter":
                        double resultFM = double.Parse(convertinput.Text)/3.280839895;
                        converttxt.Text = resultFM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Meter+Inches":
                        double resultMI = double.Parse(convertinput.Text)*39.37007874;
                        converttxt.Text = resultMI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Meter":
                        double resultIM = double.Parse(convertinput.Text)/39.37007874;
                        converttxt.Text = resultIM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Meter Done!
                    case "Centimeter+Millimeter":
                        double resultCeM = double.Parse(convertinput.Text)*10;
                        converttxt.Text = resultCeM.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Centimeter":
                        double resultMilC = double.Parse(convertinput.Text)/10;
                        converttxt.Text = resultMilC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Mile":
                        double resultCMi = double.Parse(convertinput.Text)/160934.4;
                        //TODO FIX! E-06
                        converttxt.Text = resultCMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Centimeter":
                        double resultMiC = double.Parse(convertinput.Text)*160934.4;
                        converttxt.Text = resultMiC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Yards":
                        double resultCY = double.Parse(convertinput.Text)*0.01093613298;
                        converttxt.Text = resultCY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Centimeter":
                        double resultYC = double.Parse(convertinput.Text)/0.01093613298;
                        converttxt.Text = resultYC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Feet":
                        double resultCF = double.Parse(convertinput.Text)*0.03280839895;
                        converttxt.Text = resultCF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Centimeter":
                        double resultFC = double.Parse(convertinput.Text)/0.03280839895;
                        converttxt.Text = resultFC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Centimeter+Inches":
                        double resultCI = double.Parse(convertinput.Text)*0.3937007874;
                        converttxt.Text = resultCI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Centimeter":
                        double resultIC = double.Parse(convertinput.Text)/0.3937007874;
                        converttxt.Text = resultIC.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Centimeter done!
                    case "Millimeter+Mile":
                        double resultMillMi = double.Parse(convertinput.Text)/1609344;
                        converttxt.Text = resultMillMi.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Millimeter":
                        double resultMiMill = double.Parse(convertinput.Text)*1609344;
                        converttxt.Text = resultMiMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Yards":
                        double resultMillY = double.Parse(convertinput.Text)*0.001093613298;
                        converttxt.Text = resultMillY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Millimeter":
                        double resultYMill = double.Parse(convertinput.Text)/0.001093613298;
                        converttxt.Text = resultYMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Feet":
                        double resultMillF = double.Parse(convertinput.Text)*0.003280839895;
                        converttxt.Text = resultMillF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Millimeter":
                        double resultFMill = double.Parse(convertinput.Text)/0.003280839895;
                        converttxt.Text = resultFMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Millimeter+Inches":
                        double resultMillI = double.Parse(convertinput.Text)*0.03937007874;
                        converttxt.Text = resultMillI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Millimeter":
                        double resultIMill = double.Parse(convertinput.Text)/0.03937007874;
                        converttxt.Text = resultIMill.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Millimeter Done!
                    case "Mile+Yards":
                        double resultMilY = double.Parse(convertinput.Text)*1760;
                        converttxt.Text = resultMilY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Mile":
                        double resultYMil = double.Parse(convertinput.Text)/1760;
                        converttxt.Text = resultYMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Feet":
                        double resultMilF = double.Parse(convertinput.Text)*5280;
                        converttxt.Text = resultMilF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Mile":
                        double resultFMil = double.Parse(convertinput.Text)/5280;
                        converttxt.Text = resultFMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Mile+Inches":
                        double resultMilI = double.Parse(convertinput.Text)*63360;
                        converttxt.Text = resultMilI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Mile":
                        double resultIMil = double.Parse(convertinput.Text)/63360;
                        converttxt.Text = resultIMil.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Mile done!
                    case "Yards+Feet":
                        double resultYF = double.Parse(convertinput.Text)*3;
                        converttxt.Text = resultYF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Feet+Yards":
                        double resultFY = double.Parse(convertinput.Text)/3;
                        converttxt.Text = resultFY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Yards+Inches":
                        double resultYI = double.Parse(convertinput.Text)*36;
                        converttxt.Text = resultYI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Yards":
                        double resultIY = double.Parse(convertinput.Text)/36;
                        converttxt.Text = resultIY.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Yards done!
                    case "Feet+Inches":
                        double resultFI = double.Parse(convertinput.Text)*12;
                        converttxt.Text = resultFI.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Inches+Feet":
                        double resultIF = double.Parse(convertinput.Text)/12;
                        converttxt.Text = resultIF.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Length done !!!!!!
                        //Energy

                    case "Joule (J)+NewtonMeter (Nm)":
                        double resultJouleNewton = double.Parse(convertinput.Text);
                        converttxt.Text = resultJouleNewton.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "NewtonMeter (Nm)+Joule (J)":
                        double resultNewtonJoule = double.Parse(convertinput.Text);
                        converttxt.Text = resultNewtonJoule.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //Temperature

                    case "Celcius+Kelvin":
                        double resultCelciusKelvin = double.Parse(convertinput.Text) + 273.15;
                        converttxt.Text = resultCelciusKelvin.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kelvin+Celcius":
                        double resultKelvinCelcius = double.Parse(convertinput.Text) - 273.15;
                        converttxt.Text = resultKelvinCelcius.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Celcius+Fahrenheit":
                        double resultCelciusFahrenheit = double.Parse(convertinput.Text)*1.8 + 32;
                        converttxt.Text = resultCelciusFahrenheit.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Fahrenheit+Celcius":
                        double resultFahrenheitCelcius = double.Parse(convertinput.Text) - 32;
                        resultFahrenheitCelcius = resultFahrenheitCelcius/1.8;
                        converttxt.Text = resultFahrenheitCelcius.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Fahrenheit+Kelvin":
                        double resultFahrenheitKelvin = double.Parse(convertinput.Text) - 32;
                        resultFahrenheitKelvin = resultFahrenheitKelvin/1.8;
                        resultFahrenheitKelvin = resultFahrenheitKelvin + 273.15;
                        converttxt.Text = resultFahrenheitKelvin.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kelvin+Fahrenheit":
                        double resultKelvinFahrenheit = double.Parse(convertinput.Text) - 273.15;
                        resultKelvinFahrenheit = resultKelvinFahrenheit*1.8 + 32;
                        converttxt.Text = resultKelvinFahrenheit.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //Area


                    case "SqInch+SqFeet":
                        double SqInchSqFeet = double.Parse(convertinput.Text)/144;
                        converttxt.Text = SqInchSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqFeet+SqInch":
                        double SqFeetSqInch = double.Parse(convertinput.Text)*144;
                        converttxt.Text = SqFeetSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqInch+SqYard":
                        double SqInchSqYard = double.Parse(convertinput.Text)/1296;
                        converttxt.Text = SqInchSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqYard+SqInch":
                        double SqYardSqInch = double.Parse(convertinput.Text)*1296;
                        converttxt.Text = SqYardSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqInch+Acre":
                        double SqInchAcre = double.Parse(convertinput.Text)/6272640;
                        converttxt.Text = SqInchAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "Acre+SqInch":
                        double AcreSqInch = double.Parse(convertinput.Text)*6272640;
                        converttxt.Text = AcreSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqInch+SqMile":
                        double SqInchSqMile = double.Parse(convertinput.Text)/4014489600;
                        converttxt.Text = SqInchSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqMile+SqInch":
                        double SqMileSqInch = double.Parse(convertinput.Text)*4014489600;
                        converttxt.Text = SqMileSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                    case "SqInch+SqMilimeter":
                        double SqInchSqMilimeter = double.Parse(convertinput.Text)*645.16;
                        converttxt.Text = SqInchSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqInch":
                        double SqMilimeterSqInch = double.Parse(convertinput.Text)/645.16;
                        converttxt.Text = SqMilimeterSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqInch+SqCentimeter":
                        double SqInchSqCentimeter = double.Parse(convertinput.Text)*6.4516;
                        converttxt.Text = SqInchSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqInch":
                        double SqCentimeterSqInch = double.Parse(convertinput.Text)/6.4516;
                        converttxt.Text = SqCentimeterSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqInch+SqMeter":
                        double SqInchSqMeter = double.Parse(convertinput.Text)*0.00064516;
                        converttxt.Text = SqInchSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqInch":
                        double SqMeterSqInch = double.Parse(convertinput.Text)/0.00064516;
                        converttxt.Text = SqMeterSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqInch+SqKilometer":
                        double SqInchSqKilometer = double.Parse(convertinput.Text)*0.00000000064516;
                        converttxt.Text = SqInchSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqInch":
                        double SqKilometerSqInch = double.Parse(convertinput.Text)/0.00000000064516;
                        converttxt.Text = SqKilometerSqInch.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //SqInch Done!!
                    case "SqFeet+SqYard":
                        double SqFeetSqYard = double.Parse(convertinput.Text)/9;
                        converttxt.Text = SqFeetSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqFeet":
                        double SqYardSqFeet = double.Parse(convertinput.Text)*9;
                        converttxt.Text = SqYardSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+Acre":
                        double SqFeetAcre = double.Parse(convertinput.Text)/43560;
                        converttxt.Text = SqFeetAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqFeet":
                        double AcreSqFeet = double.Parse(convertinput.Text)*43560;
                        converttxt.Text = AcreSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+SqMile":
                        double SqFeetSqMile = double.Parse(convertinput.Text)/27878400;
                        converttxt.Text = SqFeetSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+SqFeet":
                        double SqMileSqFeet = double.Parse(convertinput.Text)*27878400;
                        converttxt.Text = SqMileSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+SqMilimeter":
                        double SqFeetSqMilimeter = double.Parse(convertinput.Text)*92903.04;
                        converttxt.Text = SqFeetSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqFeet":
                        double SqMilimeterSqFeet = double.Parse(convertinput.Text)/92903.04;
                        converttxt.Text = SqMilimeterSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+SqCentimeter":
                        double SqFeetSqCentimeter = double.Parse(convertinput.Text)*929.0304;
                        converttxt.Text = SqFeetSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqFeet":
                        double SqCentimeterSqFeet = double.Parse(convertinput.Text)/929.0304;
                        converttxt.Text = SqCentimeterSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+SqMeter":
                        double SqFeetSqMeter = double.Parse(convertinput.Text)*0.09290304;
                        converttxt.Text = SqFeetSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqFeet":
                        double SqMeterSqFeet = double.Parse(convertinput.Text)/0.09290304;
                        converttxt.Text = SqMeterSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqFeet+SqKilometer":
                        double SqFeetSqKilometer = double.Parse(convertinput.Text)*0.00000009290304;
                        converttxt.Text = SqFeetSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqFeet":
                        double SqKilometerSqFeet = double.Parse(convertinput.Text)/0.00000009290304;
                        converttxt.Text = SqKilometerSqFeet.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //SqFeet done!

                    case "SqYard+Acre":
                        double SqYardAcre = double.Parse(convertinput.Text)/4840;
                        converttxt.Text = SqYardAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqYard":
                        double AcreSqYard = double.Parse(convertinput.Text)*4840;
                        converttxt.Text = AcreSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqMile":
                        double SqYardSqMile = double.Parse(convertinput.Text)/3097600;
                        converttxt.Text = SqYardSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+SqYard":
                        double SqMileSqYard = double.Parse(convertinput.Text)*3097600;
                        converttxt.Text = SqMileSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqMilimeter":
                        double SqYardSqMilimeter = double.Parse(convertinput.Text)*836127.36;
                        converttxt.Text = SqYardSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqYard":
                        double SqMilimeterSqYard = double.Parse(convertinput.Text)/836127.36;
                        converttxt.Text = SqMilimeterSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqCentimeter":
                        double SqYardSqCentimeter = double.Parse(convertinput.Text)*8361.2736;
                        converttxt.Text = SqYardSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqYard":
                        double SqCentimeterSqYard = double.Parse(convertinput.Text)/8361.2736;
                        converttxt.Text = SqCentimeterSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqMeter":
                        double SqYardSqMeter = double.Parse(convertinput.Text)*0.83612736;
                        converttxt.Text = SqYardSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqYard":
                        double SqMeterSqYard = double.Parse(convertinput.Text)/0.83612736;
                        converttxt.Text = SqMeterSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqYard+SqKilometer":
                        double SqYardSqKilometer = double.Parse(convertinput.Text)*0.00000083612736;
                        converttxt.Text = SqYardSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqYard":
                        double SqKilometerSqYard = double.Parse(convertinput.Text)/0.00000083612736;
                        converttxt.Text = SqKilometerSqYard.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                        //SqYard 

                    case "Acre+SqMile":
                        double AcreSqMile = double.Parse(convertinput.Text)/640;
                        converttxt.Text = AcreSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+Acre":
                        double SqMileAcre = double.Parse(convertinput.Text)*640;
                        converttxt.Text = SqMileAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqMilimeter":
                        double AcreSqMilimeter = double.Parse(convertinput.Text)*4046856422.4;
                        converttxt.Text = AcreSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+Acre":
                        double SqMilimeterAcre = double.Parse(convertinput.Text)/4046856422.4;
                        converttxt.Text = SqMilimeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqCentimeter":
                        double AcreSqCentimeter = double.Parse(convertinput.Text)*40468564.224;
                        converttxt.Text = AcreSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+Acre":
                        double SqCentimeterAcre = double.Parse(convertinput.Text)/40468564.224;
                        converttxt.Text = SqCentimeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Acre+SqMeter":
                        double AcreSqMeter = double.Parse(convertinput.Text)*4046.8564224;
                        converttxt.Text = AcreSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+Acre":
                        double SqMeterAcre = double.Parse(convertinput.Text)/4046.8564224;
                        converttxt.Text = SqMeterAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;


                    case "Acre+SqKilometer":
                        double AcreSqKilometer = double.Parse(convertinput.Text)*0.0040468564224;
                        converttxt.Text = AcreSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+Acre":
                        double SqKilometerAcre = double.Parse(convertinput.Text)/0.0040468564224;
                        converttxt.Text = SqKilometerAcre.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Acre Done!

                    case "SqMile+SqMilimeter":
                        double SqMileSqMilimeter = double.Parse(convertinput.Text)*2589988110336;
                        converttxt.Text = SqMileSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqMile":
                        double SqMilimeterSqMile = double.Parse(convertinput.Text)/2589988110336;
                        converttxt.Text = SqMilimeterSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+SqCentimeter":
                        double SqMileSqCentimeter = double.Parse(convertinput.Text)*25899881103.36;
                        converttxt.Text = SqMileSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqMile":
                        double SqCentimeterSqMile = double.Parse(convertinput.Text)/25899881103.36;
                        converttxt.Text = SqCentimeterSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+SqMeter":
                        double SqMileSqMeter = double.Parse(convertinput.Text)*2589988.110336;
                        converttxt.Text = SqMileSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqMile":
                        double SqMeterSqMile = double.Parse(convertinput.Text)/2589988.110336;
                        converttxt.Text = SqMeterSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMile+SqKilometer":
                        double SqMileSqKilometer = double.Parse(convertinput.Text)*2.589988110336;
                        converttxt.Text = SqMileSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqMile":
                        double SqKilometerSqMile = double.Parse(convertinput.Text)/2.589988110336;
                        converttxt.Text = SqKilometerSqMile.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqCentimeter":
                        double SqMilimeterSqCentimeter = double.Parse(convertinput.Text)/100;
                        converttxt.Text = SqMilimeterSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqMilimeter":
                        double SqCentimeterSqMilimeter = double.Parse(convertinput.Text)*100;
                        converttxt.Text = SqCentimeterSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqMeter":
                        double SqMilimeterSqMeter = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = SqMilimeterSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqMilimeter":
                        double SqMeterSqMilimeter = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = SqMeterSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMilimeter+SqKilometer":
                        double SqMilimeterSqKilometer = double.Parse(convertinput.Text)/1000000000000;
                        converttxt.Text = SqMilimeterSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqMilimeter":
                        double SqKilometerSqMilimeter = double.Parse(convertinput.Text)*1000000000000;
                        converttxt.Text = SqKilometerSqMilimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqMeter":
                        double SqCentimeterSqMeter = double.Parse(convertinput.Text)/10000;
                        converttxt.Text = SqCentimeterSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqCentimeter":
                        double SqMeterSqCentimeter = double.Parse(convertinput.Text)*10000;
                        converttxt.Text = SqMeterSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqCentimeter+SqKilometer":
                        double SqCentimeterSqKilometer = double.Parse(convertinput.Text)/10000000000;
                        converttxt.Text = SqCentimeterSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqCentimeter":
                        double SqKilometerSqCentimeter = double.Parse(convertinput.Text)*10000000000;
                        converttxt.Text = SqKilometerSqCentimeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqMeter+SqKilometer":
                        double SqMeterSqKilometer = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = SqMeterSqKilometer.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SqKilometer+SqMeter":
                        double SqKilometerSqMeter = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = SqKilometerSqMeter.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Area Done!
                        //Next Mass!

                    case "Ounces+Pounds":
                        double OuncesPounds = double.Parse(convertinput.Text)/16;
                        converttxt.Text = OuncesPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+Ounces":
                        double PoundsOunces = double.Parse(convertinput.Text)*16;
                        converttxt.Text = PoundsOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Stone":
                        double OuncesStone = double.Parse(convertinput.Text)/224;
                        converttxt.Text = OuncesStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Ounces":
                        double StoneOunces = double.Parse(convertinput.Text)*224;
                        converttxt.Text = StoneOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Ton":
                        double OuncesTon = double.Parse(convertinput.Text)/32000;
                        converttxt.Text = OuncesTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Ounces":
                        double TonOunces = double.Parse(convertinput.Text)*32000;
                        converttxt.Text = TonOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+MetricTons":
                        double OuncesMetricTons = double.Parse(convertinput.Text)/35273.96194958041;
                        converttxt.Text = OuncesMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Ounces":
                        double MetricTonsOunces = double.Parse(convertinput.Text)*35273.96194958041;
                        converttxt.Text = MetricTonsOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+ImperialTons":
                        double OuncesImperialTons = double.Parse(convertinput.Text)/35840;
                        converttxt.Text = OuncesImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Ounces":
                        double ImperialTonsOunces = double.Parse(convertinput.Text)*35840;
                        converttxt.Text = ImperialTonsOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Gram":
                        double OuncesGram = double.Parse(convertinput.Text)*28.349523125;
                        converttxt.Text = OuncesGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Ounces":
                        double GramOunces = double.Parse(convertinput.Text)/28.349523125;
                        converttxt.Text = GramOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ounces+Kilogram":
                        double OuncesKilogram = double.Parse(convertinput.Text)/35.27396194958041;
                        converttxt.Text = OuncesKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Ounces":
                        double KilogramOunces = double.Parse(convertinput.Text)*35.27396194958041;
                        converttxt.Text = KilogramOunces.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+Stone":
                        double PoundsStone = double.Parse(convertinput.Text)/14;
                        converttxt.Text = PoundsStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Pounds":
                        double StonePounds = double.Parse(convertinput.Text)*14;
                        converttxt.Text = StonePounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+Ton":
                        double PoundsTon = double.Parse(convertinput.Text)/2000;
                        converttxt.Text = PoundsTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Pounds":
                        double TonPounds = double.Parse(convertinput.Text)*2000;
                        converttxt.Text = TonPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+MetricTons":
                        double PoundsMetricTons = double.Parse(convertinput.Text)/2204.622621848776;
                        converttxt.Text = PoundsMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Pounds":
                        double MetricTonsPounds = double.Parse(convertinput.Text)*2204.622621848776;
                        converttxt.Text = MetricTonsPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+ImperialTons":
                        double PoundsImperialTons = double.Parse(convertinput.Text)/2240;
                        converttxt.Text = PoundsImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Pounds":
                        double ImperialTonsPounds = double.Parse(convertinput.Text)*2240;
                        converttxt.Text = ImperialTonsPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+Gram":
                        double PoundsGram = double.Parse(convertinput.Text)*453.59237;
                        converttxt.Text = PoundsGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Pounds":
                        double GramPounds = double.Parse(convertinput.Text)/453.59237;
                        converttxt.Text = GramPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Pounds+Kilogram":
                        double PoundsKilogram = double.Parse(convertinput.Text)/2.204622621848776;
                        converttxt.Text = PoundsKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Pounds":
                        double KilogramPounds = double.Parse(convertinput.Text)*2.204622621848776;
                        converttxt.Text = KilogramPounds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Ton":
                        double StoneTon = double.Parse(convertinput.Text)/142.8571428571429;
                        converttxt.Text = StoneTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Stone":
                        double TonStone = double.Parse(convertinput.Text)*142.8571428571429;
                        converttxt.Text = TonStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+MetricTons":
                        double StoneMetricTons = double.Parse(convertinput.Text)/157.4730444177697;
                        converttxt.Text = StoneMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Stone":
                        double MetricTonsStone = double.Parse(convertinput.Text)*157.4730444177697;
                        converttxt.Text = MetricTonsStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+ImperialTons":
                        double StoneImperialTons = double.Parse(convertinput.Text)/160;
                        converttxt.Text = StoneImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Stone":
                        double ImperialTonsStone = double.Parse(convertinput.Text)*160;
                        converttxt.Text = ImperialTonsStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Gram":
                        double StoneGram = double.Parse(convertinput.Text)*6350.29318;
                        converttxt.Text = StoneGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Stone":
                        double GramStone = double.Parse(convertinput.Text)/6350.29318;
                        converttxt.Text = GramStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Stone+Kilogram":
                        double StoneKilogram = double.Parse(convertinput.Text)*6.35029318;
                        converttxt.Text = StoneKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Stone":
                        double KilogramStone = double.Parse(convertinput.Text)*6.35029318;
                        converttxt.Text = KilogramStone.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+MetricTons":
                        double TonMetricTons = double.Parse(convertinput.Text)/1.102311310924388;
                        converttxt.Text = TonMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Ton":
                        double MetricTonsTon = double.Parse(convertinput.Text)*1.102311310924388;
                        converttxt.Text = MetricTonsTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+ImperialTons":
                        double TonImperialTons = double.Parse(convertinput.Text)/1.12;
                        converttxt.Text = TonImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Ton":
                        double ImperialTonsTon = double.Parse(convertinput.Text)*1.12;
                        converttxt.Text = ImperialTonsTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Gram":
                        double TonGram = double.Parse(convertinput.Text)*907184.74;
                        converttxt.Text = TonGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Ton":
                        double GramTon = double.Parse(convertinput.Text)/907184.74;
                        converttxt.Text = GramTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Ton+Kilogram":
                        double TonKilogram = double.Parse(convertinput.Text)*907.18474;
                        converttxt.Text = TonKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Ton":
                        double KilogramTon = double.Parse(convertinput.Text)/907.18474;
                        converttxt.Text = KilogramTon.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+ImperialTons":
                        double MetricTonsImperialTons = double.Parse(convertinput.Text)/1.0160469088;
                        converttxt.Text = MetricTonsImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+MetricTons":
                        double ImperialTonsMetricTons = double.Parse(convertinput.Text)*1.0160469088;
                        converttxt.Text = ImperialTonsMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Gram":
                        double MetricTonsGram = double.Parse(convertinput.Text)*1000000;
                        converttxt.Text = MetricTonsGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+MetricTons":
                        double GramMetricTons = double.Parse(convertinput.Text)/1000000;
                        converttxt.Text = GramMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MetricTons+Kilogram":
                        double MetricTonsKilogram = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = MetricTonsKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+MetricTons":
                        double KilogramMetricTons = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = KilogramMetricTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Gram":
                        double ImperialTonsGram = double.Parse(convertinput.Text)*1016046.9088;
                        converttxt.Text = ImperialTonsGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+ImperialTons":
                        double GramImperialTons = double.Parse(convertinput.Text)/1016046.9088;
                        converttxt.Text = GramImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "ImperialTons+Kilogram":
                        double ImperialTonsKilogram = double.Parse(convertinput.Text)*1016.0469088;
                        converttxt.Text = ImperialTonsKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+ImperialTons":
                        double KilogramImperialTons = double.Parse(convertinput.Text)/1016.0469088;
                        converttxt.Text = KilogramImperialTons.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Gram+Kilogram":
                        double GramKilogram = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = GramKilogram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Kilogram+Gram":
                        double KilogramGram = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = KilogramGram.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                        //Mass Done!

                    case "KilometerPerHour(KPH)+MilesPerHour(MPH)":
                        double KilometerPerHourMilesPerHour = double.Parse(convertinput.Text)/1.609344;
                        converttxt.Text = KilometerPerHourMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+KilometerPerHour(KPH)":
                        double MilesPerHourKilometerPerHour = double.Parse(convertinput.Text)*1.609344;
                        converttxt.Text = MilesPerHourKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerPerHour(KPH)+Knots":
                        double KilometerPerHourKnots = double.Parse(convertinput.Text)/1.852;
                        converttxt.Text = KilometerPerHourKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+KilometerPerHour(KPH)":
                        double KnotsKilometerPerHour = double.Parse(convertinput.Text)*1.852;
                        converttxt.Text = KnotsKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerPerHour(KPH)+Nautical miles/hour":
                        double KnotsKilometerPerHourNautical = double.Parse(convertinput.Text)/1.852;
                        converttxt.Text = KnotsKilometerPerHourNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+KilometerPerHour(KPH)":
                        double NauticalKilometerPerHour = double.Parse(convertinput.Text)*1.852;
                        converttxt.Text = NauticalKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerPerHour(KPH)+Meters/Second (m/s)":
                        double KilometerPerHourMeters = double.Parse(convertinput.Text)/3.6;
                        converttxt.Text = KilometerPerHourMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+KilometerPerHour(KPH)":
                        double MetersKilometerPerHour = double.Parse(convertinput.Text)*3.6;
                        converttxt.Text = MetersKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerPerHour(KPH)+Mach":
                        double KilometerPerHourMach = double.Parse(convertinput.Text)/1225.05588;
                        converttxt.Text = KilometerPerHourMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+KilometerPerHour(KPH)":
                        double MachKilometerPerHour = double.Parse(convertinput.Text)*1225.05588;
                        converttxt.Text = MachKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "KilometerPerHour(KPH)+Speed of light":
                        double KilometerPerHourSpeed = double.Parse(convertinput.Text)/1079244000;
                        converttxt.Text = KilometerPerHourSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+KilometerPerHour(KPH)":
                        double SpeedKilometerPerHour = double.Parse(convertinput.Text)*1079244000;
                        converttxt.Text = SpeedKilometerPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+Knots":
                        double MilesPerHourKnots = double.Parse(convertinput.Text)/1.150779;
                        converttxt.Text = MilesPerHourKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+MilesPerHour(MPH)":
                        double KnotsMilesPerHour = double.Parse(convertinput.Text)*1.150779;
                        converttxt.Text = KnotsMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+Nautical miles/hour":
                        double MilesPerHourNautical = double.Parse(convertinput.Text)/1.150779;
                        converttxt.Text = MilesPerHourNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+MilesPerHour(MPH)":
                        double NauticalMilesPerHour = double.Parse(convertinput.Text)*1.150779;
                        converttxt.Text = NauticalMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+Meters/Second (m/s)":
                        double MilesPerHourMeters = double.Parse(convertinput.Text)/2.236936;
                        converttxt.Text = MilesPerHourMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+MilesPerHour(MPH)":
                        double MetersMilesPerHour = double.Parse(convertinput.Text)*2.236936;
                        converttxt.Text = MetersMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+Mach":
                        double MilesPerHourMach = double.Parse(convertinput.Text)/761.214433;
                        converttxt.Text = MilesPerHourMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+MilesPerHour(MPH)":
                        double MachMilesPerHour = double.Parse(convertinput.Text)*761.214433;
                        converttxt.Text = MachMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "MilesPerHour(MPH)+Speed of light":
                        double MilesPerHourSpeed = double.Parse(convertinput.Text)/670611130.994989;
                        converttxt.Text = MilesPerHourSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+MilesPerHour(MPH)":
                        double SpeedMilesPerHour = double.Parse(convertinput.Text)*670611130.994989;
                        converttxt.Text = SpeedMilesPerHour.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+Nautical miles/hour":
                        double KnotsNautical = double.Parse(convertinput.Text);
                        converttxt.Text = KnotsNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+Knots":
                        double NauticalKnots = double.Parse(convertinput.Text);
                        converttxt.Text = NauticalKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+Meters/Second (m/s)":
                        double KnotsMeters = double.Parse(convertinput.Text)/1.943844;
                        converttxt.Text = KnotsMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+Knots":
                        double MetersKnots = double.Parse(convertinput.Text)*1.943844;
                        converttxt.Text = MetersKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+Mach":
                        double KnotsMach = double.Parse(convertinput.Text)/661.477257;
                        converttxt.Text = KnotsMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Knots":
                        double MachKnots = double.Parse(convertinput.Text)*661.477257;
                        converttxt.Text = MachKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Knots+Speed of light":
                        double KnotsSpeed = double.Parse(convertinput.Text)/582745140.388769;
                        converttxt.Text = KnotsSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+Knots":
                        double SpeedKnots = double.Parse(convertinput.Text)*582745140.388769;
                        converttxt.Text = SpeedKnots.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+Meters/Second (m/s)":
                        double NauticalMeters = double.Parse(convertinput.Text)/1.943844;
                        converttxt.Text = NauticalMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+Nautical miles/hour":
                        double MetersNautical = double.Parse(convertinput.Text)*1.943844;
                        converttxt.Text = MetersNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+Mach":
                        double NauticalMach = double.Parse(convertinput.Text)/661.477257;
                        converttxt.Text = NauticalMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Nautical miles/hour":
                        double MachNautical = double.Parse(convertinput.Text)*661.477257;
                        converttxt.Text = MachNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Nautical miles/hour+Speed of light":
                        double NauticalSpeed = double.Parse(convertinput.Text)/582745140.388769;
                        converttxt.Text = NauticalSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+Nautical miles/hour":
                        double SpeedNautical = double.Parse(convertinput.Text)*582745140.388769;
                        converttxt.Text = SpeedNautical.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+Mach":
                        double MetersMach = double.Parse(convertinput.Text)/340.2933;
                        converttxt.Text = MetersMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Meters/Second (m/s)":
                        double MachMeters = double.Parse(convertinput.Text)*340.2933;
                        converttxt.Text = MachMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Meters/Second (m/s)+Speed of light":
                        double MetersSpeed = double.Parse(convertinput.Text)/299790000;
                        converttxt.Text = MetersSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+Meters/Second (m/s)":
                        double SpeedMeters = double.Parse(convertinput.Text)*299790000;
                        converttxt.Text = SpeedMeters.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Mach+Speed of light":
                        double MachSpeed = double.Parse(convertinput.Text)/880975.323346;
                        converttxt.Text = MachSpeed.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Speed of light+Mach":
                        double SpeedMach = double.Parse(convertinput.Text)*880975.323346;
                        converttxt.Text = SpeedMach.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;
                        //Speed Done!                                                            
                    case "Milliseconds+Seconds":
                        double MillisecondsSeconds = double.Parse(convertinput.Text)/1000;
                        converttxt.Text = MillisecondsSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Milliseconds":
                        double SecondsMilliseconds = double.Parse(convertinput.Text)*1000;
                        converttxt.Text = SecondsMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Milliseconds+Minutes":
                        double MillisecondsMinutes = double.Parse(convertinput.Text)/60000;
                        converttxt.Text = MillisecondsMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Milliseconds":
                        double MinutesMilliseconds = double.Parse(convertinput.Text)*60000;
                        converttxt.Text = MinutesMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Milliseconds+Hours":
                        double MillisecondsHours = double.Parse(convertinput.Text)/3600000;
                        converttxt.Text = MillisecondsHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Milliseconds":
                        double HoursMilliseconds = double.Parse(convertinput.Text)*3600000;
                        converttxt.Text = HoursMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Milliseconds+Days":
                        double MillisecondsDays = double.Parse(convertinput.Text)/86400000;
                        converttxt.Text = MillisecondsDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Days+Milliseconds":
                        double DaysMilliseconds = double.Parse(convertinput.Text)*86400000;
                        converttxt.Text = DaysMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Milliseconds+Weeks":
                        double MillisecondsWeeks = double.Parse(convertinput.Text)/604800000;
                        converttxt.Text = MillisecondsWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Milliseconds":
                        double WeeksMilliseconds = double.Parse(convertinput.Text)*604800000;
                        converttxt.Text = WeeksMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Milliseconds+Years":
                        double MillisecondsYears = double.Parse(convertinput.Text)/31536000000;
                        converttxt.Text = MillisecondsYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Milliseconds":
                        double YearsMilliseconds = double.Parse(convertinput.Text)*31536000000;
                        converttxt.Text = YearsMilliseconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "SecondsMinutes":
                        double SecondsMinutes = double.Parse(convertinput.Text)/60;
                        converttxt.Text = SecondsMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Seconds":
                        double MinutesSeconds = double.Parse(convertinput.Text)*60;
                        converttxt.Text = MinutesSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Hours":
                        double SecondsHours = double.Parse(convertinput.Text)/3600;
                        converttxt.Text = SecondsHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Seconds":
                        double HoursSeconds = double.Parse(convertinput.Text)*3600;
                        converttxt.Text = HoursSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Days":
                        double SecondsDays = double.Parse(convertinput.Text)/86400;
                        converttxt.Text = SecondsDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "DaysSeconds":
                        double DaysSeconds = double.Parse(convertinput.Text)*86400;
                        converttxt.Text = DaysSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Weeks":
                        double SecondsWeeks = double.Parse(convertinput.Text)/604800;
                        converttxt.Text = SecondsWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Seconds":
                        double WeeksSeconds = double.Parse(convertinput.Text)*604800;
                        converttxt.Text = WeeksSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Seconds+Years":
                        double SecondsYears = double.Parse(convertinput.Text)/31536000;
                        converttxt.Text = SecondsYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Seconds":
                        double YearsSeconds = double.Parse(convertinput.Text)*31536000;
                        converttxt.Text = YearsSeconds.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Hours":
                        double MinutesHours = double.Parse(convertinput.Text)/60;
                        converttxt.Text = MinutesHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Minutes":
                        double HoursMinutes = double.Parse(convertinput.Text)*60;
                        converttxt.Text = HoursMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Days":
                        double MinutesDays = double.Parse(convertinput.Text)/1440;
                        converttxt.Text = MinutesDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Days+Minutes":
                        double DaysMinutes = double.Parse(convertinput.Text)*1440;
                        converttxt.Text = DaysMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Weeks":
                        double MinutesWeeks = double.Parse(convertinput.Text)/10080;
                        converttxt.Text = MinutesWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Minutes":
                        double WeeksMinutes = double.Parse(convertinput.Text)*10080;
                        converttxt.Text = WeeksMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Minutes+Years":
                        double MinutesYears = double.Parse(convertinput.Text)/525600;
                        converttxt.Text = MinutesYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Minutes":
                        double YearsMinutes = double.Parse(convertinput.Text)*525600;
                        converttxt.Text = YearsMinutes.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Days":
                        double HoursDays = double.Parse(convertinput.Text)/24;
                        converttxt.Text = HoursDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Days+Hours":
                        double DaysHours = double.Parse(convertinput.Text)*24;
                        converttxt.Text = DaysHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Weeks":
                        double HoursWeeks = double.Parse(convertinput.Text)/168;
                        converttxt.Text = HoursWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Hours":
                        double WeeksHours = double.Parse(convertinput.Text)*168;
                        converttxt.Text = WeeksHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Hours+Years":
                        double HoursYears = double.Parse(convertinput.Text)/8760;
                        converttxt.Text = HoursYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Hours":
                        double YearsHours = double.Parse(convertinput.Text)*8760;
                        converttxt.Text = YearsHours.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Days+Weeks":
                        double DaysWeeks = double.Parse(convertinput.Text)/7;
                        converttxt.Text = DaysWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Days":
                        double WeeksDays = double.Parse(convertinput.Text)*7;
                        converttxt.Text = WeeksDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Days+Years":
                        double DaysYears = double.Parse(convertinput.Text)/365;
                        converttxt.Text = DaysYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Days":
                        double YearsDays = double.Parse(convertinput.Text)*365;
                        converttxt.Text = YearsDays.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Weeks+Years":
                        double WeeksYears = double.Parse(convertinput.Text)/52.142857;
                        converttxt.Text = WeeksYears.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                    case "Years+Weeks":
                        double YearsWeeks = double.Parse(convertinput.Text)*52.142857;
                        converttxt.Text = YearsWeeks.ToString();
                        Result.Visibility = Visibility.Visible;
                        converttxt.Visibility = Visibility.Visible;
                        break;

                }
            }




        }

    }
}
